Fix crashes with completion and composed characters.
authorEli Zaretskii <eliz@gnu.org>
Tue, 23 Aug 2011 08:38:29 +0000 (11:38 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 23 Aug 2011 08:38:29 +0000 (11:38 +0300)
commit93c55516e78aceced2e6c58268a442cdda2ba12a
tree77b35d3f47028deb3fa28ea50f399961a0310e8a
parentbbedc73878002066d81f0f975727bb94e6999b4c
Fix crashes with completion and composed characters.

 src/dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos
 instead of CHAR_TO_BYTE.  Fixes a crash when a completion
 candidate is selected by the mouse, and that candidate has a
 composed character under the mouse.
src/ChangeLog
src/dispnew.c